#include "TcpServer.hpp"
using namespace std;

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        cerr << "Usage: " << argv[0] << " port" << endl;
        exit(USAGE_ERRO);
    }
    Enable_Console_Log_Strategy();
    uint16_t port = stoi(argv[1]);
    unique_ptr<TcpServer> tser = make_unique<TcpServer>(port);
    tser->Start();

    return 0;
}